Smartphone diabetes management application